home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
raytrace
/
rayshade
/
graphtal.lzh
/
Graphtal.Amiga
/
Successor.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-19
|
1KB
|
51 lines
/*
* Successor.h - class definition for L-System successors.
*
* Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
* University of Berne, Switzerland
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product without the express consent of the authors.
*
* There is no warranty or other guarantee of fitness of this software
* for any purpose. It is provided solely "as is".
*
*/
#ifndef Successor_H
# define Successor_H
#include "list.h"
#include "Module.h"
#include "Name.h"
//___________________________________________________________ Successor
class Successor
{
public:
Successor(double, ProdModuleList*);
~Successor();
double& probability();
ModuleList* clone();
friend ostream& operator<<(ostream&, Successor&);
private:
double _probability;
ProdModuleList* modules;
};
typedef Successor* SuccessorPtr;
declareList(SuccessorList, SuccessorPtr);
inline double& Successor::probability() {
return _probability;
}
#endif // Successor_H